import request from '@/utils/request'

// 根据pid查询分类列表
export const GetCategoriesByPid = pid => {
  return request({
    url: `/admin/product/category/findByPid/${pid}`,
    method: 'get',
  })
}
//导出分类数据excel
export const ExportCatesExcel = () => {
  return request({
    url: `/admin/product/category/export`,
    method: 'get',
    //后端返回的响应体以二进制数据流方式接收(默认以json方式接收)
    responseType: 'blob',
  })
}
